package com.fire.control.system.dto.app;

import java.io.Serializable;
import java.util.Date;

import com.fire.control.system.entity.WarningInfo;

public class AppRespWarningVo implements Serializable{

	private static final long serialVersionUID = 1L;
	
	private String id;
	
	private String building;
	
	private Date startTime;
	
	private String type;
	
	private String currentStatus;
	
	
	public String getCurrentStatus() {
		return currentStatus;
	}

	public void setCurrentStatus(String currentStatus) {
		this.currentStatus = currentStatus;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getBuilding() {
		return building;
	}

	public void setBuilding(String building) {
		this.building = building;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	

	public Date getStartTime() {
		return startTime;
	}

	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}
	
	public void setVo(WarningInfo warningInfo) {
		this.id = warningInfo.getId();
		if(null != warningInfo.getTargetDevice()) {
			//this.location = warningInfo.getTargetDevice().getLocation();
//			this.address = warningInfo.getTargetDevice().getAddress();
		}
		this.startTime = warningInfo.getStartTime();
	}

}
